Method GetIdsWithAncestorsAsync<TProps>(List<long>, CancellationToken)
Get IDs of all objects and their parents to root via recursive CTE.
Used for building hierarchical relationships in ToTreeListAsync.
Task<List<long>> GetIdsWithAncestorsAsync<TProps>(List<long> filteredIds, CancellationToken cancellationToken = default) where TProps : class, new()